package com.seculab.admin.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.seculab.admin.dao.DefaultDAO;
import com.seculab.admin.domain.Code;

@Service
public class CodeServiceImpl implements CodeService {

	@Autowired
	private DefaultDAO defaultDAO;
	
	@Autowired
	public CodeServiceImpl(DefaultDAO defaultDAO) {
		this.defaultDAO = defaultDAO;
	}

	@Override
	public List<Code> getListCodeType() {
		return (List<Code>)defaultDAO.selectList("Code.getListCodeType");
	}

	@Override
	public List<Code> getListCode(String code_type) {
		// TODO Auto-generated method stub
		return null;
	}

}
